package com.youhome.service.service;

import com.github.pagehelper.PageInfo;
import com.youhome.common.exception.CustomException;
import com.youhome.service.model.News;

/**
 * Created by chen365 on 2019/01/23.
 */
public interface NewsService {
    News selectByPrimaryKey(Long id) throws CustomException;

    PageInfo<News> selectByBean(Integer pageNumber, Integer pageSize, News record);

    PageInfo<News> selectByType(Integer type, Integer pageNumber, Integer pageSize) throws CustomException;

    PageInfo<News> selectTop10() throws CustomException;
}
